let express=require('express');
let router=express.Router();
let db=require('../sql');

router.get('/',function (req,res,next){
    db.query('select * from exercises',function(err,data){
        if(err){
            throw err;
        }else{
            res.render('exercise',{exercise:data});
        }
    })
});



module.exports=router;
